<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

use App\Twitter;

Route::get('/', function () {

    return view('welcome');
});

Route::group(['middleware'=>'auth','prefix' => 'admin'], function() {




    Route::get('/','AuthController@home');


    Route::resource('/users', 'UserController');
    Route::resource('/roles', 'RoleController');
    Route::resource('/permissions','PermissionController');
    Route::resource('/clubs','ClubController');
    Route::resource('/clubbanners','ClubbannerController');
    Route::get('/clubbanners/{id}/club','ClubbannerController@bannerwithclub');
    Route::resource('/clubvideos','ClubvideoController');
    Route::get('/clubvideos/{id}/club','ClubvideoController@videoswithclub');
    Route::resource('/activities','ActivityController');
    Route::resource('/awards','AwardController');
    Route::resource('/awardlogs','AwardlogController');
    Route::resource('/consumers','ConsumerController');
    Route::resource('/trains','TrainController');
    Route::resource('/twitters','TwitterController');
    Route::resource('/clubclasses','ClubclassController');
    Route::resource('/mentors','MentorController');



});
Route::group(['prefix' => 'auth'], function() {
        Route::get('/logout','AuthController@logout');
    Route::get('user/login','AuthController@login')->name('login');
    Route::post('user/login','AuthController@signin');
});
